package cn.knight.controller;

import cn.knight.domain.Store;
import cn.knight.service.IStoreService;
import cn.knight.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StoreCtrl {

    @Autowired
    private IStoreService storeService;

    @PostMapping("/store/save")
    public Result save(@RequestBody Store store){
        storeService.save(store);
        return new Result();
    }
}
